//
//  SettingTableViewCell.m
//  Newproject3
//
//  Created by rimi on 16/9/12.
//  Copyright © 2016年 Liang. All rights reserved.
//

#import "SettingTableViewCell.h"

@implementation SettingTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self.contentView addSubview:self.leftImage];
        [self.contentView addSubview:self.messageLabel];
        [self.contentView addSubview:self.rightImage];
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    self.leftImage.frame = CGRectMake(_width *0.05, _height*0.1, _width*0.08, _height*0.8);
    self.messageLabel.frame = CGRectMake(_width *0.18, _height*0.2, _width*0.35, _height*0.6);
    self.rightImage.frame = CGRectMake(_width*0.9, _height*0.25, _width*0.05, _height*0.5);
}


-(UIImageView *)leftImage{
    if (_leftImage == nil) {
        _leftImage = [[UIImageView alloc]init];
    }
    return _leftImage;
}

-(UILabel *)messageLabel{
    if (_messageLabel == nil) {
        _messageLabel = [[UILabel alloc]init];
    }
    return _messageLabel;
}
-(UIImageView *)rightImage{
    if (_rightImage == nil) {
        _rightImage = [[UIImageView alloc]init];
    }
    return _rightImage;
}
@end
